package com.gxa.controller;

import com.gxa.pojo.Ordoper;
import com.gxa.utils.Constants;
import com.gxa.utils.ResponseData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: zxy
 * Date: 2020/11/26 14:40
 * Description:
 * Version: V1.0
 */
@RestController
@RequestMapping("/remarks")
@Api(value = "操作备注",tags = "操作备注")
public class remarksController {

    @Autowired
    private ResponseData responseData;

    @PostMapping(value = "/addRemarks")
    @ApiOperation(value = "添加操作备注",notes = "添加操作备注",httpMethod = "POST", response = ResponseData.class)
    public ResponseData addRemarks(){
        Ordoper ordoper = new Ordoper();
        ordoper.setOrdoperDesc("操作备注");
        responseData.setCode(Constants.SUCCESS);
        responseData.setMsg("添加成功");
        responseData.setData(null);
        return responseData;
    }
}
